<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
<style>
.td-span{
	border: 1px solid #d3dbde;
    border-radius: 3px;
    color: #666;
    cursor: pointer;
    display: inline-block !important;
    margin-left:10px;
    width: 63px !important;
    text-align: center;
}
.on{
	color: #666;
	padding:2px;
}
.on:hover{
  	cursor: pointer;
	text-decoration:underline;
  }
</style>


    <div class="subnav">
        <a href="">首页</a> &gt; <a href="">系统管理</a> &gt; <a href="">QQ钱包</a>
    </div>
    <div class="main-inner">
        <div class="x-body">
            <div class="tablefilter">
                <div class="tablebutton">
                    <a href="?m=system&c=qqpay_add" class=""><i class="fa fa-plus"></i>新增</a>
                    <a href="javascript:void(0);" onclick="choose_all();"><i class="fa fa-check"></i>全选</a>
                    <a href="javascript:void(0);" onclick="del();"><i class="fa fa-trash"></i>删除</a>      
                </div>
            </div>
    
            <table class="layui-table">
                <thead>
                    <tr>
                        <th>选择</th>
                        <th>别名</th>
                        <th>账号</th>
                        <th>类型</th>
                        <th>开放终端</th>
                        <th>开放等级</th>
                        <th>添加时间</th>
                    </tr>
                </thead>
                <tbody id="datalist">
                    <tr>
                        <td>
                            <input type="checkbox" name="ids[$key]" class="del" value="{$val['id']}" />
                        </td>
                        <td>轻易付-QQ钱包</td>
                        <td>aaa</td>
                        <td>轻易付</td>
                        <td><span class="td-span">PC</span><span class="td-span">Mobile</span></td>                         
                    	<td><a class="on">测试组</a>
                        	<a class="on">黑名单</a>
                        	<a class="on">VIP1</a>
                        	<a class="on">VIP2</a>
                        	<a class="on">VIP3</a>
                        	<a class="on">VIP4</a>
                        	<a class="on">VIP5</a>
                        	<a class="on">VIP6</a>
                        	<a class="on">VIP7</a>
                        	<a class="on">VIP8</a>
                        	<a class="on">VIP9</a>
                    	</td>
                    	<td>2018-03-20 17:31:16</td>
                    </tr>
                </tbody>
            </table>
            <div class="formbox fix" style="margin-left:20px;">
				<a class="formBtn active">保存</a>
				<a class="formBtn">还原</a>
			</div>
            <div class="layui-clear">
                <div id="pages" class="layui-laypage">{$multi}</div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        function choose_all(){
    		$(".del").each(function(n,j){
    			if(!$(this).is(":checked")){
    				$(this).prop("checked",true);	
    			}else{
    				$(this).removeAttr("checked",false);
    			}
    		})
        }
    	   
    	function del(){
    		var arr = [];
    		$(".del").each(function(n,j){
				if($(this).is(":checked")){
					arr.push($(this).val());
				}
			});
    		$.post('?m=system&c=about&a=del',{
				'del_ids': arr
			},function (json){
				if(json.status=="1"){
					alert("删除成功！");
					location.href=location.href;
				}else{
					alert("失败");
				}
			},'json');


			
        }	
    </script>
        
        
        
{template index/footer}
